let p = new Promise((resolve, reject) => {
    setTimeout(() => {
        reject('err1024')
    })
});

p.catch((err) => {
    return Promise.resolve(1)
}).then((res) => {
    console.dir(res)
}, (e) => {
});
